<template>
  <div @click="f1">
    <button @click.stop="f2">点我试试</button>

    <a href="https://www.baidu.com" @click.prevent.stop>baidu</a>
 
  </div>
</template>

<script>
export default {
    methods: {
      f1(){
        console.log('f1');
      },
      f2(){
        console.log('f2');
      }
    }
}
</script>

<style>

</style>